package com.chinadaas.hangzhou.archetypeweb.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author: XiaoDong.Xie
 * @create: 2021-08-03 13:29
 * @description:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("alert_rule")
@ToString
public class AlertRulePO {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField
    private String name;

    /**
     * 监控对象类型 1、接口  2、 服务  3、合同  4、计费
     */
    @TableField
    private Integer objectType;

    @TableField
    private Integer perCheckTime;

    @TableField
    private Integer forTime;

    /**
     * 1代表被禁用、0代表没有被禁用
     */
    @TableField("is_disabled")
    private Integer disabled;

    /**
     * 1、代表全部 0、代表部分
     */
    private Integer isAll;

    @TableField
    private String msg;

    @TableField
    private Date gmtCreate;

    @TableField
    private Date gmtModified;
}
